package com.library.service;

import com.library.dao.LibraryDao;
import com.library.domain.Library;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Andrey Nikitin
 */

@Service
public class LibraryService {

    @Autowired
    private LibraryDao libraryDao;

    public LibraryService() {
    }

    public void saveLibrary(Library library) {
        libraryDao.addLibrary(library);
    }
}
